<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Contato_model extends CI_Model {

    function __construct() {
        parent::__construct();
        $this->load->config('parametros');
    }

    function cadastrar($_array) {
        $this->db->insert($this->config->item('dbCliente') . $this->config->item('tblContato'), $_array);
        if ($this->db->affected_rows() > 0) {
            return TRUE;
        } else {
            return FALSE;
        }
    }
}